package com.edward.migration.controller;

import com.edward.migration.service.IMigrationDatabaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/change")
public class MigrationController {

    @Autowired
    private IMigrationDatabaseInfoService migrationTableInfoService;

    @RequestMapping("/transaction")
    public Object getInfoTransaction() throws Exception {
//        return migrationTableInfoService.getInfoTransaction();
        return migrationTableInfoService.getInfo();
    }

    @RequestMapping("/decode")
    public Object decode() throws Exception {
        return migrationTableInfoService.decode();
    }
}
